package com.xbongbong.pro.enums;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

/**
 * @author feng.zheng
 * @version v1.0
 * @date 2019/4/23 15:36
 * @since v1.0
 */
@Getter
public enum DetailTabStatusColorEnum {
    //  normal success warning danger 前端对应四种颜色
    NORMAL("normal", "", "enum.detailTabStatusColor.name.normal"),
    SUCCESS("success", "", "enum.detailTabStatusColor.name.success"),
    WARNING("warning", "", "enum.detailTabStatusColor.name.warning"),
    DANGER("danger", "", "enum.detailTabStatusColor.name.danger"),;

    DetailTabStatusColorEnum(String alias, String color, String name) {
        this.alias = alias;
        this.color = color;
        this.name = name;
    }

    private String alias;

    private String color;

    private String name;

    public String getName() {
        return I18nMessageUtil.getMessage(name);
    }
}
